package com.demo.main;

import org.springframework.beans.factory.BeanNameAware;

public class Triangle implements BeanNameAware {

	private int x;
	private int y;
	private int z;

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	public int getZ() {
		return z;
	}

	public void setX(int x) {
		this.x = x;
	}

	public void setY(int y) {
		this.y = y;
	}

	public void setZ(int z) {
		this.z = z;
	}

	@Override
	public String toString() {
		return "Triangle [x=" + x + ", y=" + y + ", z=" + z + "]";
	}

	@Override
	public void setBeanName(String name) {

		ApplicationUtils.BEANNAME_LIST.add(name);
	}
}
